﻿@using Webdiyer.WebControls.Mvc;
@model PagedList<hsgsSHXX.Model.wcpcs>
@using MvcContrib.UI.Grid;
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>诊疗数据</title>
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui.custom.min.js" type="text/javascript"></script>
    
    @if (false)
    {
        <script src="../../../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
    }

        <script type="text/javascript" language="javascript">
            function iframeAutoFit() {
                var ex;
                try {
                    if (window != parent) {
                        var a = parent.document.getElementsByTagName("IFRAME");
                        for (var i = 0; i < a.length; i++) {
                            if (a[i].contentWindow == window) {
                                var h1 = 0, h2 = 0;
                                if (document.documentElement && document.documentElement.scrollHeight) {
                                    h1 = document.documentElement.scrollHeight;
                                }
                                if (document.body) h2 = document.body.scrollHeight;
                                var h = Math.max(h1, h2);
                                if (window.ActiveXObject) { h += 4; }
                                else { h += 4; }
                                a[i].style.height = h + "px";
                                window.removeEventListener('resize', iframeAutoFit, false); //兼容谷歌浏览器时要去掉RISZE监听
                            }
                        }
                    }
                }
                catch (ex) { }
            }
    </script>
</head>
<body onload="iframeAutoFit()">
@if(Model.Count>0)
{
    <h5>中医院挂号信息</h5>
    <div>
    

 <table  border="1" cellspacing="1" cellpadding="1" class="grid">
  <tr>
    <td align="center">姓名</td>
    <td align="center">办理日期</td>
    <td align="center">性别</td>
    <td align="center">病人年龄</td>
    <td align="center">病人地址</td>
    <td align="center">电话号码</td>
    <td align="center">身份证号</td>
    <td align="center">出生日期</td>
    
  </tr>
@{foreach (var item in Model)
{  
  <tr>
    <td align="center">@item.xm</td>
    <td align="center">@item.BLRQ</td>
    <td align="center">@item.XB</td>
    <td align="center">@item.BRNL</td>
    <td align="center">@item.BRDZ</td>
    <td align="center">@item.dhhm</td>
    <td align="center">@item.SFZH</td>
    <td align="center">@item.CSRQ</td>
    
  </tr>
} 
} 
</table>
        

    </div>

    <div class="clear">
        <span style="float: left; ">共 @Model.TotalItemCount 条记录，页 @Model.CurrentPageIndex/@Model.TotalPageCount</span>&nbsp;&nbsp;
        @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = true, HorizontalAlign = "left", FirstPageText = "&lt;&lt;", LastPageText = "&gt;&gt;" }, new { style = "" })
    </div>


}
</body>
</html>
